<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>提交试用报告 - {$Config.sitename}</title>
    <link rel="stylesheet" href="__CSS__/global.css" />
    <link rel="stylesheet" href="__CSS__/member.css" />
    <link href="{$config_siteurl}static/js/artDialog/skins/default.css" rel="stylesheet" />
    <script type="text/javascript">
        //全局变量
        var GV = {
            siteUrl: "__ROOT__/",
            JS_ROOT: "__COMMJS__/"
        };
    </script>
    <script src="__COMMJS__/wind.js"></script>
    <script src="__JS__/jquery.min.js"></script>
</head>

<body>
<div class="b-page">
    <Admintemplate file="Home/Public/header"/>

<div class="contentbj">
    <div class="member_body">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="180" valign="top" bgcolor="#f5f5f5">
                    <a href="__WEBURL__/user/index/uavatar">
                        <div class="touxiangarea">
                            <div class="uploadpic"></div>
                            <div class="touxiang"><img src="{$userinfo.uavatar|getUavatar}" alt=""/></div>
                        </div>
                    </a>


    <h3 class="listtitle">账号管理</h3>
                    <ul class="listcss">
                        <foreach name="usernav" item="un">
                            <li><a href="__WEBURL__/user/index/{$un.link}" class="{$un.act}">{$un.title}</a></li>
                        </foreach>
                    </ul></td>
                <td valign="top" style="padding-left:27px;">
                    <div class="title_area">
                        <div class="title_left">提交试用报告</div>
                    </div>

                    <div class="ofh" style="width:95%;float:left;">
                        <form name="form1" class="ajaxForm" action="__WEBURL__/user/index/addreport" method="post" enctype="multipart/form-data">
                            <input type="hidden" name="tryid" value="{$data.tryid}"/>
                            <div class="addreport">
                                <ul>
                                    <li>标题</li>
                                    <li><input type="text" name="title" class="inputcss" placeholder="请输入标题" value="{$data.title}" size="80" /></li>
                                    <li>简介</li>
                                    <li><textarea name="content" cols="30" rows="10" class="create_ta"></textarea></li>
                                    <li>图片</li>
                                    <li style="margin-top: 10px"><div class="mt_list">
                                            <div class='pics'>
                                                <span><Form function='hbqImages' parameter='image[],bluk,$data[image],User' /></span>
                                                <span class='delbtn'><a class='delpic' href='javascript:void(0)'>删除</a></span>
                                            </div>
                                        </div>
                                        <a id="addpic" class="btn">+添加更多图片</a>
                                    </li>
                                    <li>&nbsp</li>
                                    <li><button class="create_btn Ajax_submit_btn" >提交报告</button></li>
                                    <li></li>
                                </ul>
                            </div>
                        </form>
                        
                    </div>

                </td>
            </tr>
        </table>
    </div>
</div>
    <Admintemplate file="Home/Public/footer"/>
</div>

<script src="__JS__/index.js"></script>
<script src="__JS__/jquery.common.js"></script>
<script src="__JS__/jquery.form.min.js"></script>
<script src="__JS__/jquery.doajax.js"></script>
<script src="__COMMJS__/common.js"></script>
<script src="__COMMJS__/uploads.js"></script>

<script>
    $(document).ready(function(){
        $('.b-dongtaiItem').each(function(i,val){
            if(i%3==0) $(this).addClass('b-dongtaiItem_first');
        });
        $('.b-dongtaiItem__pic').hover(function(){
            $(this).find('.b-itemMask').stop(true,true).fadeIn();
        },function(){
            $(this).find('.b-itemMask').stop(true,true).fadeOut();
        });
        $('.b-itemMask').on('click',function(){
            $('body').css({overflow:'hidden'});
            $('.b-pop').show();
        });
        $('.b-popDetail__closeBtn').on('click',function(){
            $('body').css({overflow:'auto'});
            $('.b-pop').hide();
        });

        $ /**
         * 添加图片
         */
        $('#addpic').on('click', function (){
            var arr="<div class='pics'>"
            arr+="<span><Form function='hbqImages' parameter='image[],bluk,,User' /></span>";
            arr+="<span class='delbtn'><a class='delpic' href='javascript:void(0)'>删除</a></span>";
            arr+="</div>";
            $(".mt_list").append(arr);
        });
        $(".delpic").live("click",function(){
            $(this).parent().parent('div').remove();
            return false;
        });


    });
</script>

</body>
</html>